<template>
  <div class="page-loading" v-if="!mounted">
    <img :src="require('@/assets/images/123.gif')" width="50px" alt="">
  </div>
</template>

<script>
  export default {
    data() {
      return {
        mounted: false
      }
    },
    mounted() {
      setTimeout(()=> {
        this.mounted = true
      }, 1200)
    }
  }
</script>

<style lang="scss" scoped>
  .page-loading {
    display: block;
    position: absolute;
    z-index: 10;
    background-color: $bg-gray;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    padding-top: 50px;
  }
</style>
